<?php 
$conn = mysql_connect('127.0.0.1','root','root');
mysql_query('use blog',$conn);
mysql_query('set names utf8',$conn);
$sql = "select * from cat";
$rs = mysql_query($sql,$conn);

if(!$rs){
	echo '岔纰了';
}else{
	$cat = array();
	while($row = mysql_fetch_assoc($rs)){
		$cat[] = $row;
	}
	//print_r($cat);
}

require "./view/admin/catlist.html";

